#!/bin/bash

source /etc/profile

current_hour=$(date "+%H")
tag_focus=1
for hour in 09 10 11 13 14 15 23
do
   [[ ${hour} == ${current_hour} ]] && tag_focus=0
done
source /root/.local/share/virtualenvs/fund-vG4fWw0n/bin/activate
[ $tag_focus -eq 0 ] && python3 src/crontab/cli.py --type=focus

tag_top=1
for hour in 15 22
do
  [[ ${hour} == ${current_hour} ]] && tag_top=0
done
[ $tag_top -eq 0 ] && python3 src/crontab/cli.py --type=AI --top=100

[ $tag_top -eq 0 ] && python3 src/crontab/cli.py --type=top --top=5

[ ${current_hour} == "22" ] && python3 src/crontab/cli.py --type=top_AI --top=15
``
[ ${current_hour} == "22" ] && python3 src/crontab/cli.py --type=Up --percent=1

[ ${current_hour} == "22" ] && python3 src/crontab/cli.py --type=Down --percent=0.7

deactivate

